<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'table.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src = "./js/jquery-1.12.4.js"></script> 
	<script type="text/javascript" src = "./js/tiao.js"></script>
  </head>
<body>
    <div align="center">
      <table border="1">
          <tr>
            <td>商品编号</td>
            <td>商品名称</td>
            <td>商品价格</td>
            <td>库村数量</td>
            <td>订单状态</td>
            <td>操作</td>
          </tr>
          <c:forEach items="${goods}" var="good">
            <tr>
              <td>${good.id}</td>
              <td>${good.goodName}</td>
              <td>${good.goodsPrice}</td>
              <td>${good.goodsCount}</td>
              <td>
                <c:if test="${good.billStatus == 0}">
                  	待处理
                </c:if>
                <c:if test="${good.billStatus == 1}">
                  	处理中
                </c:if>
                <c:if test="${good.billStatus == 2}">
                  	已处理
                </c:if>
              </td>
              <td>
                <a href="javascript:void(0);" class="update">修改</a>
              </td>
            </tr>
          </c:forEach>
      </table>
    </div>
</body>
</html>
